﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ArtCube.master" AutoEventWireup="true" CodeFile="About.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="stylesheet" href="Content/about.css" type="text/css" media="screen" />
    <meta name="keywords" content='<%=sKeywords %>' />
    <meta name="description" content='<%=sDescription %>' />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="pageHeader">
        <h1><% =sTitle %></h1>
    </div>

    <div>
         <%     
                string sMainDivStyle=string.Empty;
                string sImageBlock=string.Empty;
                string sTitleStyle=string.Empty;
                string sContentStyle=string.Empty;

                for (int iCounter = 0; iCounter < DT.Rows.Count; iCounter++)
                {
                    // Set style for even rows
                    if (iCounter>0 && iCounter % 2 != 0)
                    {
                        sMainDivStyle="About_SecondBlock";
                        sImageBlock = "SB_Image";
                        sTitleStyle="SB_Title";
                        sContentStyle="SB_Content";
                    }
                    else// Set style for non even rows
                    {
                        sMainDivStyle="About_FirstBlock";
                        sImageBlock = "FB_Image";
                        sTitleStyle="FB_Title";
                        sContentStyle="FB_Content";
                    }

                    System.Data.DataRow EmployeeRow = DT.Rows[iCounter];
                %>    
                    <div class="<%=sMainDivStyle %>">
                    <div class="<%=sImageBlock %>" ><img alt="emp" src="content/galery/<%=EmployeeRow["ImagePath"].ToString() %>" /></div>
                    <div><div class="<%=sTitleStyle %>" ><h2><%=EmployeeRow["Name"].ToString()%></h2></div>
                    <div class="<%= sContentStyle%>" ><p><%=EmployeeRow["Context"].ToString()%></p></div></div></div>
                <%} %>
                
    </div>

    
</asp:Content>

